home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-04-25 | 4.8 KB | 165 lines | [TEXT/CWIE] |
- // ==================================================
- // touchMeConstants.h
- // Copyright (C) 1996-1997 Mizutori Tetsuya
- // July 4, 1996; February 3, 1997, April 22, 1997.
- // ==================================================
- // All documents are pretty-printed in 10-point Geneva font.
-
- #pragma once
-
- #include <PP_Messages.h>
-
- const OSType kThisApplicationCreatorType = 'MzTm';
-
-
- // Message strings defined in touchMeCaptions.r
-
- const ResIDT rSTRx_TouchMe = 1000;
- const ResIDT rSTRx_Error = 9000;
-
- enum ErSTRx_TouchMe {
- rSTRx_TouchMe_PrefFile = 1,
- rSTRx_puriTEXT_AppleGuide,
- rSTRx_TouchMe_HelpMenu,
- rSTRx_TouchMe_ChooseFile,
- rSTRx_TouchMe_ChooseType,
- rSTRx_TouchMe_ChooseCreator,
- rSTRx_TouchMe_End
- };
-
-
- // Pane IDs
-
- const PaneIDT kNoPaneID = -1;
- const PaneIDT kBadPaneID = -1;
-
- const ResIDT rPPob_TouchMeMainWindow = 1000;
- const ResIDT rRidL_TouchMeMainWindow = rPPob_TouchMeMainWindow;
-
- const PaneIDT kMain_ButtonOK = 'OK ';
- const PaneIDT kMain_ButtonCencel = 'CNCL';
- const PaneIDT kMain_ButtonHelp = 'HELP';
- const PaneIDT kMain_TouchMeIcon = 'PICN';
- const PaneIDT kMain_Title = 'TITL';
- const PaneIDT kMain_Credit = 'CRYT';
- const PaneIDT kMain_Version = 'VERS';
- const PaneIDT kMain_ButtonSync = 'SYNC';
-
- const PaneIDT kMain_CrCheckbox = 'CRCB';
- const PaneIDT kMain_CrButtonCurrent = 'CCRB';
- const PaneIDT kMain_CrButtonDirect = 'CDRB';
- const PaneIDT kMain_CrButtonFirst = 'C1RB';
- const PaneIDT kMain_CrButtonSecond = 'C2RB';
- const PaneIDT kMain_CrTextEditDate = 'CDED';
- const PaneIDT kMain_CrTextEditTime = 'CTED';
- const PaneIDT kMain_CrButtonNow = 'CNOW';
-
- const PaneIDT kMain_MdCheckbox = 'MDCB';
- const PaneIDT kMain_MdButtonCurrent = 'MCRB';
- const PaneIDT kMain_MdButtonDirect = 'MDRB';
- const PaneIDT kMain_MdButtonFirst = 'M1RB';
- const PaneIDT kMain_MdButtonSecond = 'M2RB';
- const PaneIDT kMain_MdTextEditDate = 'MDED';
- const PaneIDT kMain_MdTextEditTime = 'MTED';
- const PaneIDT kMain_MdButtonNow = 'MNOW';
-
- const PaneIDT kRadioGroupCreation[] = {
- kMain_CrButtonCurrent,
- kMain_CrButtonDirect,
- kMain_CrButtonFirst,
- kMain_CrButtonSecond,
- kNoPaneID };
-
- const PaneIDT kRadioGroupModification[] = {
- kMain_MdButtonCurrent,
- kMain_MdButtonDirect,
- kMain_MdButtonFirst,
- kMain_MdButtonSecond,
- kNoPaneID };
-
-
- // Commands and Messages
-
- const CommandT cmd_TouchMeMainWindow = rPPob_TouchMeMainWindow;
- const MessageT msg_TouchMeMainWindow = cmd_TouchMeMainWindow;
-
-
- const CommandT cmd_Main_ButtonOK = msg_OK;
- const CommandT cmd_Main_ButtonCencel = msg_Cancel;
- const CommandT cmd_Main_ButtonHelp = 'HELP';
-
-
- const MessageT msg_Main_ButtonOK = cmd_Main_ButtonOK;
- const MessageT msg_Main_ButtonCencel = cmd_Main_ButtonCencel;
- const MessageT msg_Main_ButtonHelp = cmd_Main_ButtonHelp;
-
- const MessageT msg_Main_TouchMeIcon = 'PICN';
- const MessageT msg_Main_Title = 'TITL';
- const MessageT msg_Main_ButtonSync = 'SYNC';
-
- const MessageT msg_Main_CrCheckbox = 'CRCB';
- const MessageT msg_Main_CrButtonCurrent = 'CCRB';
- const MessageT msg_Main_CrButtonDirect = 'CDRB';
- const MessageT msg_Main_CrButtonFirst = 'C1RB';
- const MessageT msg_Main_CrButtonSecond = 'C2RB';
- const MessageT msg_Main_CrTextEditDate = 'CDED';
- const MessageT msg_Main_CrTextEditTime = 'CTED';
- const MessageT msg_Main_CrButtonNow = 'CNOW';
-
- const MessageT msg_Main_MdCheckbox = 'MDCB';
- const MessageT msg_Main_MdButtonCurrent = 'MCRB';
- const MessageT msg_Main_MdButtonDirect = 'MDRB';
- const MessageT msg_Main_MdButtonFirst = 'M1RB';
- const MessageT msg_Main_MdButtonSecond = 'M2RB';
- const MessageT msg_Main_MdTextEditDate = 'MDED';
- const MessageT msg_Main_MdTextEditTime = 'MTED';
- const MessageT msg_Main_MdButtonNow = 'MNOW';
-
-
- // Touch Command or Message
- const MessageT msg_Touch = 'TOCH';
- const MessageT msg_SavePrefs = 'SPRF';
- const MessageT msg_SavePrefsWFrame = 'SWFR';
- const MessageT msg_LoadPrefs = 'LPRF';
- const MessageT msg_Help = 'HELP';
-
-
- // Extra Command orMessage
- const MessageT msg_Main_DroppedFile = 'DRFL';
-
- const MessageT msg_Main_DroppedFileCrDate = 'DFCD';
- const MessageT msg_Main_DroppedFileCrTime = 'DFCT';
- const MessageT msg_Main_DroppedFileMdDate = 'DFMD';
- const MessageT msg_Main_DroppedFileMdTime = 'DFMT';
-
- const MessageT msg_Main_DroppedTextCrDate = 'DTCD';
- const MessageT msg_Main_DroppedTextCrTime = 'DTCT';
- const MessageT msg_Main_DroppedTextMdDate = 'DTMD';
- const MessageT msg_Main_DroppedTextMdTime = 'DTMT';
-
-
- // Help window
- //const ResIDT rPPob_HelpWindow = 2000;
- //const MessageT msg_Open_HelpWindow = 2000;
- //const CommandT cmd_Open_HelpWindow = 2000;
- //const CommandT cmd_HelpMenu = 2010;
-
-
-
- #define SignalType_( inType ) \
- {\
- Str31 str = "\p1234"; \
- ::BlockMoveData( &(inType), &str[1], 4);\
- SignalPStr_(str);\
- }
-
- #define SignalNumb_( inNumber ) \
- {\
- Str31 str; \
- ::NumToString( inNumber, str );\
- SignalPStr_(str);\
- }
-
-
- // end of constants
-